<?php
/**
 * True Gallery Component for Joomla CMS
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename true.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');

// defining administrator's folder
$admindir = str_replace( 'components', 'administrator'.DIRECTORY_SEPARATOR.'components', dirname(__FILE__) );

// including component's constants
require_once( $admindir.DIRECTORY_SEPARATOR.'defines.php' );

//JTuneConfig::debug(true);

// executing call router
JTuneRouter::route();

// closing mainframe
if( TG_AJAX ) JTuneConfig::close();
?>